import { http, jumpExport } from '@/utils/http/axios';

// 获取订单列表
export function List(params) {
  return http.request({
    url: '/hgexample/epOrder/list',
    method: 'get',
    params,
  });
}

// 删除/批量删除订单
export function Delete(params) {
  return http.request({
    url: '/hgexample/epOrder/delete',
    method: 'POST',
    params,
  });
}

// 添加/编辑订单
export function Edit(params) {
  return http.request({
    url: '/hgexample/epOrder/edit',
    method: 'POST',
    params,
  });
}

// 修改订单状态
export function Status(params) {
  return http.request({
    url: '/hgexample/epOrder/status',
    method: 'POST',
    params,
  });
}

// 获取订单指定详情
export function View(params) {
  return http.request({
    url: '/hgexample/epOrder/view',
    method: 'GET',
    params,
  });
}

// 获取订单最大排序
export function MaxSort() {
  return http.request({
    url: '/hgexample/epOrder/maxSort',
    method: 'GET',
  });
}

// 导出订单
export function Export(params) {
  jumpExport('/hgexample/epOrder/export', params);
}